<script setup>
  const data={
    name:'小米',
    url:'https://www.mi.com/',
    logo:'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/55d2e50dd3783b52244ea3938e9dfca7.png?thumb=1&w=468&h=1228&f=webp&q=90'
  }
</script>

<template>
<!-- Attribute属性渲染-->
  <div>
    <a :href="data.url">
      <img :src="data.logo" alt="小米手机">
      <input type="button" v-bind:value="data.name">
    </a>
  </div>
</template>

<style scoped>

</style>